/**
 * @file text_data.h
 *
 * @date Oct 12, 2011
 * @author seth
 *
 * @brief This file is part of EBEX State Estimator, created for the EBEX project
 *
 * This software is copyright (C) 2011 Columbia University
 *
 * EBEX State Estimator is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * EBEX State Estimator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with EBEX State Estimator; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

#ifndef TEXT_DATA_H_
#define TEXT_DATA_H_

#include <stddef.h>
#include <stdbool.h>
#include <data_file.h>

typedef struct
{
	size_t column;
	size_t stride;
	char *delimiters;
} text_data_param_t;

void text_data_close(data_file_t *m_file);
bool text_data_open(data_file_t *m_file, const char *m_filename, size_t m_offset);
bool text_data_reset(data_file_t *m_file);
size_t text_data_fillbuffer(data_file_t *m_source, double *m_buffer, const size_t m_numelements);
size_t text_data_writebuffer( data_file_t *m_source, double *m_buffer, const size_t m_numelements);

bool text_data_set_parameters(data_file_t *m_source, const void *m_param);

#endif /* TEXT_DATA_H_ */
